package org.management.system.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.persistence.*;
import javax.validation.constraints.NotEmpty;
import lombok.*;
import org.management.base.BaseEntity;

/**
 * 功能描述
 * 访问权限模块
 * @author jiangyan
 * @date 2019/03/16
 * @description
 * @project management
 */
@Data
@ApiModel(value="访问权限")
@EqualsAndHashCode(callSuper = true)
@Table(name = "sys_permission")
public class PermissionEntity extends BaseEntity {
    /**
     * 权限名称
     */
    @Column(name = "PERMISSION_NAME")
    @NotEmpty(message = "权限名称不能为空")
    @ApiModelProperty(value = "权限名称",name = "permissionName", required = true)
    private String permissionName;

    /**
     * 权限匹配规则
     */
    @Column(name = "PERMISSION_RULE")
    @NotEmpty(message = "权限匹配规则不能为空")
    @ApiModelProperty(value = "权限匹配规则",name = "permissionRule", required = true)
    private String permissionRule;
}